package com.sl.discovery.api;

import com.sl.discovery.api.domain.dto.SquareLakeServiceInstance;

import java.util.List;

public interface SquareLakeDiscoveryClient {


    /**
     * Gets all ServiceInstances associated with a particular serviceId.
     * @param serviceId The serviceId to query.
     * @return A List of ServiceInstance.
     */
    List<SquareLakeServiceInstance> getInstances(String serviceId);

    /**
     * @return All known service IDs.
     */
    List<String> getServices();

}
